<template>
  <view class="container">
    <!-- 顶部组件 -->
    <u-navbar
      :is-back="true"
      :background="{ background: '#fff' }"
      :border-bottom="false"
      id="nav-bar"
      title="通知公告"
    ></u-navbar>
    <!-- 列表 -->
    <!-- <mescroll-body
          ref="mescrollRef"
          @init="mescrollInit"
          top="0"
          @down="downCallback"
          :up="upOption"
          @up="upCallback"
        > -->

    <view class="list">
      <view class="item">
        <view class="title">汇付天下上线普通版</view>
        <view class="content"
          >汇付天下(普通版)预计15日下午开放采购，普通版机型政策依旧为:99+60+20+20+168;但值得注意的是，新下单机型低价费率为0.48%无分润(纯新客户无法享受，仅之前办理过汇付天下的，并已认证过本人特惠卡的老客户可以享受)，日常费率为0.6%(最高万8)，该版本机型虽然有返现，但也近期内不做任何费率上浮动作。
        </view>
        <view class="time">发布日期：2024-02-03 12:21:22</view>
      </view>
    </view>
    <!-- </mescroll-body> -->
  </view>
</template>
<script>
import MescrollMixin from '@/components/mescroll-uni/mescroll-mixins.js';
import service from '@/common/service';
import util from '@/common/utils';

export default {
  mixins: [MescrollMixin],
  data() {
    return {
      upOption: {
        page: {
          num: 0,
          size: 10,
        },
        noMoreSize: 5,
        empty: {
          icon: 'https://api.hjsfpay.com/image/newimg/all-noData.png',
          tip: '',
        },
      },
      mescroll: null,
      currentData: {},
    };
  },
  onLoad(e) {},
  methods: {
    mescrollInit(mescroll) {
      this.mescroll = mescroll;
    },
    downCallback() {
      this.recordList = [];
      this.mescroll.resetUpScroll();
    },
    upCallback(page) {
      this.getTradePage(page);
    },
    getTradePage(page) {
      const that = this;
      const param = {
        pageNumber: page.num,
        pageSize: page.size,
        status: that.tabCurrent,
      };
      service.getTradePage(
        param,
        function (res) {
          if (res && res.data) {
            that.mescroll.endSuccess(res.data.data.length);
            if (page.num == 1) that.recordList = [];
            that.recordList = that.recordList.concat(res.data.data);
          }
        },
        function (res) {}
      );
    },
  },
};
</script>

<style lang="scss" scoped>
page {
  background-color: #f5f5f5;
}

.container {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  text-align: center;
  background-color: #f5f5f5;
}

.list {
  width: 100%;
  padding: 30rpx;
  .item {
    position: relative;
    width: 100%;
    height: auto;
    padding: 30rpx;
    font-family: PingFang SC, sans-serif;
    background: #ffffff;
    border-radius: 16rpx;
    line-height: 1;
    text-align: left;
    .title {
      width: 100%;
      font-weight: 800;
      font-size: 28rpx;
      color: #333333;
    }

    .content {
      margin-top: 27rpx;
      width: 100%;
      font-weight: 400;
      font-size: 24rpx;
      color: #333333;
      line-height: 1.5;
    }

    .time {
      margin-top: 32rpx;
      width: 100%;
      font-weight: 400;
      font-size: 24rpx;
      color: #999999;
    }
  }
}
</style>
